#include <stdio.h>
#include <stdlib.h>

struct hero
{
    int id;
    char *name;
    double hp;
    double mp;
    char skill[50];
};
int main(void)
{
   struct hero hero1 = {5,"ab",200,100,"unuse"};
   hero1.name =(char *)malloc(60);
   printf("input\n"); 
   scanf("%s",hero1.name);
   printf("\n%d-%s-%lf-%lf-%s \n",hero1.id,hero1.name,hero1.hp,hero1.mp,hero1.skill);    
   return 0;
}	
